myHandlePrintFile
Handles printing a file.
public void handlePrintFile (File file);
file
- The name of the file to be printed.
DISCUSSION
This application-defined method is called when the application receives a request to print a file. For example, this occurs when the user attempts to print a file from the Finder that bears the application's creator. You must register the method name by calling theregisterPrintDocumentHandler
method (page 44) when initializing the application. The handlePrintFile method is only useful if you have packaged your Java application using JBindery.
- IMPORTANT
- Printing is not supported in JDK 1.0.2 and earlier.
![]()
SEE ALSO
TheregisterPrintDocumentHandler
method (page 44).